package com.zhiying;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableTransactionManagement
@EnableCaching
@EnableScheduling
//导入applicationContext-kaptcha.xml资源初始化换captchaProducer对象
@ImportResource("classpath:spring/applicationContext-kaptcha.xml")
@MapperScan("com.zhiying.mybatis")
//启动定时任务
public class Mains {
	
	
	public static void main(String[] args) {
		
		SpringApplication.run(Mains.class, args);
		
	}

	   
	
}
